package com.parking.stall.exceptionCode;

/**
 * StallExceptionCode：车辆异常枚举类
 */
public enum StallExceptionCode {

    /*代理对象（异常编号：内容）*/
    USER_RENT_DATE_PARAM_ERROR(5058,"请完善租用日期信息"),
    END_TIME_SURPASS_2(5057,"结束时间不得超过2天"),
    START_TIME_SURPASS_1(5057,"开始时间不得超过1天"),
    END_TIME_1_24(5056,"结束时间时间范围：1-24"),
    START_TIME_0_23(5055,"开始时间时间范围：0-23"),
    RENT_DATE_LE_30(5054,"短租日期最多不得超过30天"),
    NOW_GT_START_DATE(5053,"开始日期小于当前日期"),
    STALL_ALREADY_IS_UP(5052,"车位已上架"),
    STALL_RENT_DATE_ERROR(5051,"出租时间有错"),
    RENT_TIME_OVERLAP_OR_CONTAIN(5050,"出租时间重叠或包含"),
    START_GT_END_TIME(5049,"开始时间大于结束时间"),
    START_EQ_END_TIME(5048,"开始时间等于结束时间"),
    STALL_UP_DOWN_NO_FULL(5047,"请完善车位上下架信息参数"),
    STALL_RENT_DATE_PARAM_ERROR(5043,"请完善出租日期信息"),
    STALL_RENT_TIME_DB_PARAM_ERROR(5042,"数据库车位出租时间参数错误"),
    STALL_RENT_TIME_OBJECT_IS_NULL(5041,"车位出租时间对象不存在"),
    RENTERS_ID_IS_NULL(5040,"出租客id不存在"),
    RENTERS_INFO_NO_EXISTS(5039,"出租客信息对象不存在"),
    STALL_INFO_IS_EXISTS(5037,"车位已存在"),
    CERTIFIED_ACCOUNT_NOT_EXISTS(5036,"物业账号对象不存在"),
    CERTIFIED_STATE_NOT_ENABLE(5035,"物业账号已禁用或删除"),
    STALL_INFO_PARAM_NOT_FULL(5034,"车位信息参数未完善"),
    STALL_STATE_PARAM_ERROR(5033,"车位状态参数错误"),
    CERTIFIED_INFO_NOT_EXISTS(5032,"物业信息对象不存在"),
    START_EQ_END_DATE(5031,"开始日期等于于结束日期"),
    START_GT_END_DATE(5030,"开始时间大于结束时间"),
    LOCATION_PARAM_NO_COMPLETE(5029,"定位信息未完善"),
    CERTIFIED_INFO_ID_IS_NULL(5028,"物业信息id不存在"),
    STALL_ALREADY_IS_DOWN(5028,"车位已下架"),
    STALL_INFO_OBJECT_IS_NULL(5027,"车位对象不存在"),
    STALL_INFO_ID_NULL(5026,"车位信息id不存在"),
    CALL_PARAM_IS_NULL(5025,"调用参数不存在"),
    STALL_UP_DOWN_PARAM_ERROR(5024,"车位上下架参数错误"),
    STALL_AFFILIATION_PARAM_ERROR(5023,"车位归属参数错误"),
    STALL_TYPE_PARAM_ERROR(5022,"车位类型参数错误"),
    CERTIFIED_INFO_CALL_DTO_NO_EXISTS(5021,"物业信息调用dto不存在"),
    STALL_CHECK_TYPE_PARAM_ERROR(5020,"车位审核类型参数错误"),
    STALL_CHECK_UPDATE_PARAM_NOT_EXISTS(5019,"请完善车位审核的修改信息"),
    STALL_CHECK_PASS_OR_WAIT(5018,"审核车位已申请或已通过"),
    STALL_CHECK_NOTE_NOT_EXISTS(5017,"请完善审核车位的退回原因"),
    STALL_CHECK_STATE_SQL_ERROR(5016,"车位审核状态数据库数据错误"),
    STALL_CHECK_ALREADY_NO_PASS(5015,"车位审核已退回,不可重复退回"),
    STALL_CHECK_NO_PASS_NOT_PASS(5014,"车位审核已退回,不可通过"),
    STALL_CHECK_PASS_NOT_NO_PASS(5013,"车位审核已通过,不可退回"),
    STALL_CHECK_STATE_PARAM_ERROR(5012,"车位审核状态参数错误"),
    STALL_CHECK_OBJECT_NOT_EXISTS(5011,"车位审核对象不存在"),
    STALL_CHECK_PARAM_NOT_EXISTS(5010,"请完善车位审核信息"),
    STALL_CHECK_ALREADY_PASS(5009,"车位已通过,不可重复申请"),
    STALL_CHECK_ALREADY_WAIT(5008,"车位已申请,不可重复申请"),
    CERTIFIED_INFO_NOT_FULL(5007,"请先完善个人信息中物业信息"),
    NOT_RENTERS_REAL_NAME(5006,"出租客未实名"),
    ACCOUNT_NOT_ENABLE(5005,"账号已禁用或已删除"),
    IMG_NOT_NULL(5004,"图片不存在，无法删除"),
    CERTIFIED_INFO_ERROR(5003,"物业信息与个人中心的物业信息不符"),
    SYSTEM_ERROR(5002,"系统异常"),
    STALL_APPLY_FOR_PARAM_NOT_EXISTS(5001,"请完善申请车位信息");

    /**
     * code:异常编号
     * message:内容
     */
    private Integer code;
    private String message;

    /**
     * StallExceptionCode:构造方法
     * @param code:异常编号
     * @param message:内容
     */
    StallExceptionCode(Integer code,String message){
        this.code=code;
        this.message=message;
    }

    /**
     * 编码、消息get方法
     * @return
     */
    public Integer getCode() {
        return code;
    }
    public String getMessage() {
        return message;
    }
}
